﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StripeOne.Web.Base.Configuration;

namespace StripeOne.Web.Base.Common
{
    public class Translation : StripeOneXml
    {
        public Translation(string file) : base(file, true) { }

        /// <summary>
        /// Retorna o dicionario em português
        /// </summary>
        public static Translation Default { get { return new Translation("pt-br"); } }

        public static Translation Current
        {
            get
            {
                return new Translation(StripeOneInstances.Current.Dictionary);
            }
        }

        public string GetText(string section, string key)
        {
            return this.GetValue(section, key);
        }
    }
}